package com.cheng.dao;

import com.cheng.pojo.User;
import com.cheng.pojo.Users;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    //查询用户
    User selectUser(@Param("userCode")String userCode,@Param("userPassword")String userPassword);

    //查询用户信息
    User select_information(@Param("userCode")String userCode);

    //修改商家信息
    int update_information(@Param("userName")String userName,@Param("userPassword")String userPassword,@Param("phone")String phone,@Param("address")String address,@Param("userCode")String userCode);

    //商家收款
    int addMoney(@Param("usercode")String usercode,@Param("money")String money);

    //商家退款
    int refund(@Param("userCode")String userCode,@Param("total_price")String total_price);


    //注册商家
    int addUser(User user);
}
